package main

import (
	"gitee.com/lvshicong/blog/core"
	"gitee.com/lvshicong/blog/flags"
	"gitee.com/lvshicong/blog/global"
	"gitee.com/lvshicong/blog/route"
)

func main() {
	flags.Parse()
	//fmt.Println(flags.FlagsOptions)
	global.Config = core.ReadConf()
	core.InitLogrus()
	global.DB = core.InitDB()
	//迁移表结构逻辑
	flags.Run()
	//启动web
	route.Run()
}
